package hu.vpszd.entities.transaction

import hu.vpszd.entities.BaseEntity

import javax.persistence.Entity
import javax.persistence.Table
import javax.validation.constraints.NotNull

@Entity
@Table(name = "Income")
class Income extends BaseEntity {

	@NotNull
	String incomeType
	@NotNull
	String rank
	@NotNull
	Integer incomeAmount
	
	@NotNull
	String companyName
	@NotNull
	String companyAddress
	@NotNull
	String registrationNumber
	@NotNull
	String taxNumber
	@NotNull
	Date lengthOfEmployement
}